<div class="navbar">
  <div class="navbar-inner">
    <div class="left"><a href="#" class="back link"> <i class="icon icon-back"></i><span>返回</span></a></div>
    <div class="center sliding" style="color:#FFF">{$event.title}</div>
    <div class="right">
      <!-- Right link contains only icon - additional "icon-only" class--><a href="#" class="link icon-only open-panel"> <i class="icon icon-bars"></i></a>
    </div>
  </div>
</div>
<div class="pages">
<div class="page" data-page="event">
<div class="page-content" data-ptr-distance="85">
<img src="{$event.pic_url}"  style="width:100%"/>
<div class="content-block-title">比赛时间：{$event.start_time|date_format:"%Y年%m月%d日 %H时%M分"}</div>
<div class="content-block-title">  
{if $event.is_vaild>0}
注意！{$event.guess_time_str}结束预测，请抓紧时间！
{else}
抱歉，比赛已于{$event.game_time_str}开始，超过预测时间
{/if}
</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p style="text-align:center">
  </p>  
  <p style="text-align:center">
  预测时间还剩：{$event.left_time_str}
  </p>
</div>
</div> 
<div class="content-block-title">达人预测：</div>
<div class="content-block ">
<input type="hidden" name="multi_yes" value="{$event.multi_yes}" />
<input type="hidden" name="multi_no" value="{$event.multi_no}" />
  {foreach from=$players item=player key=epid}
	<div class="case">
	  <h2 style="color:#666;margin-bottom:0">{$player.player_name}</h2>
	  <p style="margin:40px 0">{$player.title}</p>
	  {if $player.think_type_way ==1}
	  {if $player.guess}您已经预测：是的{else}请预测{/if}
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="1" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" class="multi" value="only_y" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='only_y'}1{else}0{/if}" class="js-guess-only_y-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess}button-fill color-orange{/if} js-{$player.epid}-only_y"  >{if $player.guess}取消预测{else}√我猜是的{/if}</button>
	  </form>
	  {/if}	  
	  {if $player.think_type_way ==2}
	  {if $player.guess}您已经预测：不是{else}请预测{/if}
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="0" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" value="only_n" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='only_n'}1{else}0{/if}" class="js-guess-only_n-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess}button-fill color-orange{/if} js-{$player.epid}-only_n"  >{if $player.guess}取消预测{else}×我猜不是{/if}</button>
	  </form>
	  {/if} 
	  {if $player.think_type_way ==3}
	  {if $player.guess}您已经预测{else}请预测{/if}
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="1" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" class="multi" value="yes" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='yes'}1{else}0{/if}" class="js-guess-yes-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess.guess_type=='yes'}button-fill color-orange{/if} js-{$player.epid}-yes"  >{if $player.guess.guess_type=="yes"}已经猜是的{else}√我猜是的{/if}</button>
	  </form>
	  <br />
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="0" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" class="multi" value="no" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='no'}1{else}0{/if}" class="js-guess-no-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess.guess_type=='no'} button-fill color-orange{/if} js-{$player.epid}-no"   >{if $player.guess.guess_type=="no"}已经猜不是{else}×我猜不是{/if}</button>
	  </form>
	  {/if}
	  {if $player.think_type_way ==0}
	  {if $player.guess}您已经预测数据：<span class="js-guess-num-{$player.epid}">{$player.guess.guess_value|default:""}</span>{else}请预测{/if}
	  <div class="searchbar {if $player.guess.guess_type=='number'} guess-num {/if} js-{$player.epid}-number">
		  <form action="/?m=kxdrmobile&a=guess" method="GET" class="row ajax-submit">
			<div class="search-input col-60">
			  <input type="hidden" name="eid" value="{$event.id}" />
			  <input type="hidden" name="sid" value="{$sid}" />
			  <input type="hidden" name="guess_type" class="multi" value="number" />
			  <input type="hidden" name="player" value="{$player.player_id}" />
			  <input type="hidden" name="event_player" value="{$player.epid}" />
			  <input name="value" type="search" class="button"  placeholder='填数字' value="{$player.guess.guess_value|default:""}"/>
			  <input type="hidden" name="guess_id" value="{$player.guess.id|default:0}" class="js-guess-number-id-{$player.epid}" />
			  <input type="hidden" name="reset" value="{$player.guess|default:0}" class="js-guess-number-{$player.epid}" />
			</div>
			<button type="submmit" class="col-40 button  button-fill button-round js-guess-num" href="###" >{if $player.guess}重猜{else}我猜{/if}</button>
		  </form>
	  </div>
	  <p style="margin:10px 0;color:#CCC">亲，{$player.think_type_way_name}哦！</p>
	  {/if}
	</div>
  {/foreach}
  <br style="clear:both">
</div>
{if $event.game_descrip}
<div class="content-block-title">赛事介绍：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p class="">
  {$event.game_descrip}
  </p>
</div>
</div>
{/if}
{if $event.description}
<div class="content-block-title">参与提示：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p class="">
  {$event.description}
  </p>
</div>
</div>
{/if}
<div class="content-block-title">比赛时间：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p style="text-align:center">
  {$event.start_time|date_format:"%Y年%m月%d日 %H时%M分"}
  </p>
</div>
</div>
<div class="content-block-title">开奖时间：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p style="text-align:center">
  {$event.gifting_time|date_format:"%Y年%m月%d日 %H时%M分"}
  </p>
</div>
</div>
<div class="content-block-title">您可获得以下奖品：</div>
<div class="content-block">
  <p class="">
  {foreach from=$gifts.gifts item=gift key=gid}
  <div class="case giftshow{$key}">
	{if $gift.title}
	<div class="tips tips-small tips-notice" style="margin-bottom:20px">【{$gift.player_name}】{$gift.title}</div>
	{/if}
	<p><span class="gift_cffs_{$key}{$gid}">{$gift.cffs}</span>可获取奖品：</p>
	<img src="{$gift.pic_url}_200x200.jpg" width="40%" />
	<p><span class="gift_name_{$gift.gift_id}">{$gift.name}</span></p>
	<h4 class="title">奖品总数：<span  class="show_tip" style="border-bottom:1px dotted #666"><span class="gift_event_quant_{$key}{$gid}">{$gift.event_quant}</span></span>个</h4>
	{if $gift.rule_medal_id>0}
	<p>必须持有该勋章：<br />【<img src="{$gift.rule_medal_pic|cat:'_20x20'}" />{$gift.rule_medal_name}】<br /></p>
	{/if}
	{if $gift.price>0}
	<p>奖品价值：<span  style="border-bottom:1px dotted #666"><span class="gift_price_{$key}{$gid}">{$gift.price}</span>元</span></p>
	{/if}
  </div>
  {/foreach}
  </p>
  <br style="clear:both">
</div>
</div>
</div>
</div>
<br />